using System;
using NUnit.Framework;
using DotNetXmlSwfChart;

namespace DotNetXmlSwfChart.UnitTest
{
    [TestFixture]
    public class ChartBorderFixture
    {
        [Test]
        public void ToSourceXml()
        {
            string testXml = 
                "<chart_border top_thickness='1' " +
                               "bottom_thickness='1' " +
                               "left_thickness='1' " +
                               "right_thickness='1' " +
                               "color='ffffff' " +
                               "/>";
            ChartBorder cb = new ChartBorder();
            cb.TopThickness = 1;
            cb.BottomThickness = 1;
            cb.LeftThickness = 1;
            cb.RightThickness = 1;
            cb.Color = "ffffff";
            Assert.AreEqual(testXml, cb.ToSourceXML());
        }
    }
}
